package com.tpsix.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_role")
public class SysRole implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "role_name")
    private String roleName;

    @TableField(value = "role_code")
    private String roleCode;

    @TableField(value = "description")
    private String description;

    @TableField(value = "ds_type")
    private int dsType;

    @TableField(value = "ds_scope")
    private String dsScope;

    @TableField(value = "created")
    private LocalDateTime created;

    @TableField(value = "updated")
    private LocalDateTime updated;

    @JsonIgnore
    @TableLogic
    private boolean deleted;

    @TableField(value = "tenant_id")
    private Long tenantId;

    private static final long serialVersionUID = 1L;
}